
import request from "@/utils/request.js"

//发送请求
export const getMessageApi=(contentType,page=1,pageSize=10)=>{
	return request.get('/driver/messages/page',{
		contentType,
		page,
		pageSize
	})
}

/**
 *  @property {string} contentType - 消息类型
 */
//点击全部已读
export const readAllApi = (contentType) => {
  return request.put(`/driver/messages/readAll/${contentType}`)
}

